<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
  <style>
  
  </style>
</head>
<body>
  <div id="app">
    <ul>
      <li  v-for="item in books">{{item}}</li>
    </ul>
    <button @click="btn"> fsf</button>
    
  </div>

  <script src="../js/vue.js"></script>
  <script>
    let app = new Vue({
      el: '#app',  //先定义抓取id
      data: {
        books:["ji","jkl","uzi"]
      },

      methods: {
      btn(){
        this.books.push("jkfks");
      },
   
      }
    })
  </script>
</body>
</html>